<script setup lang="ts">
import { ref,computed} from 'vue'
import {useStore} from 'vuex'
let store =  useStore();
// defineProps<{ msg: string }>()
const count = ref(0)

const addConutText = computed(()=>{
  return store.state.countVuex
})

const addCount = ()=>{
  store.commit("ADD_ACOUNTVUEX",Math.random()*12)
}


</script>

<template>
  <h1>HelloWorld</h1>
  <el-row class="mb-4">
    <el-button type="primary" @click="addCount">点击 {{ addConutText }} 次</el-button>
  </el-row>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
